package edu.sctu.wangfuxin.day20150623.httpTest;

import java.text.MessageFormat;

/**
 * Created by user06 on 2015/6/23.
 */
public class Main {
    public static void main(String[] args) throws Exception {

/**
 * Api注册页面
 */
        String username = "huangkai1";
        String password = "huangkai";
        String email = "huang_k@yeah.net";
        String c = "ii";
        String a = "regist";

        String str = MessageFormat.format("code[username]={0}&code[password]={1}&code[email]={2}&c={3}&a={4}",
                username, password, email, c, a);

        HttpConnection.getconnection("http://api.ii.com.cn/openoauth",str);
/**
 * 获取卓越工程师页面数据
 */
        HttpConnection.getconnection("http://172.16.10.37/index.php","title=2015-06-16_朱英志");

///**
// * 验证传递表单
// */
//
//        HttpConnection.getconnection("http://localhost:8090/sctu/signin","username=zhuyingzhi&password=13");




    }
}
